/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.classicmodels.model;

import java.sql.Connection;
import java.sql.DriverManager;

/**
 *
 * @author cursojava
 */
public class Datasource {
    private static Connection connection;
    
    public static Connection getconnection() throws Exception{
        if(connection == null) {
        
        connection = conectarBaseDeDatos();
        
        }   
        return connection;
    }
    
    private static final String CONNECTION_STRING = "jdbc:mysql://192.168.0.110/classic_models_inc";
    private static final String usuario = "curso";
    private static final String password = "curso";
   

   
    

}
